"""
随机生成1-150的80个数字，完成顺序查找
"""
import random

data = [0] * 80
for i in range(80):
    data[i] = random.randint(1,150)

val = 0
while val != -1:
    find = 0
    val = int(input("请输入查找的数字(1-150),输入-1离开："))
    for i in range(80):
        if data[i] == val:
            print("在第%3d个位置找到了[%3d]"%(i+1,val))
            find += 1
    if find == 0 and val != -1:
        print("#########没有找到[{}]###########".format(val))
print("数据内容是：")
for i in range(10):
    for j in range(8):
        print("%2d[%3d]\t"%(i*8+j+1,data[i*8+j]),end='')
    print()